package edu.jd.movieplatform.search.c_minprice.impl;

import edu.jd.movieplatform.info.screen.dao.ScreenDao;
import edu.jd.movieplatform.search.c_minprice.c_MinPrice;
import edu.jd.movieplatform.search.c_minprice.c_MinPriceDto;
import edu.jd.movieplatform.search.c_minprice.c_MinPriceService;
import edu.jd.movieplatform.search.c_minprice.dao.c_MinPriceDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class c_MinPriceServiceImpl implements c_MinPriceService {

    @Resource
    private c_MinPriceDao priceDao;

    @Override
    public Float getMinPrice(c_MinPriceDto dto) {
        return priceDao.getminprice(dto);
    }

    @Override
    public List<c_MinPrice> getCinemaList() {
        return priceDao.getCinemaList();
    }
}
